package cn.tedu.straw.portal.service.impl;

import cn.tedu.straw.commons.model.Permission;

import cn.tedu.straw.portal.mapper.PermissionMapper;
import cn.tedu.straw.portal.service.IPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-07-18
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {
    @Autowired
    private  PermissionMapper permissionMapper;


    @Override
    public List<Permission> getByUserId(Integer userId) {
        return permissionMapper.selectByUserId(userId);
    }
}
